<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>编辑新文章</title>
<link href="./layout.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../editor/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../editor/xheditor-1.1.14-zh-cn.min.js"></script>
</head>
<body>
<jsp:include page="./menu.jsp"/>
<div id="main">
	<!-- 对于struts2表单标签可以实现数据绑定，对于普通表单标签，需要通过value属性绑定后台数据 -->
	<s:form method="post" action="edit" theme="simple">
		<s:hidden name="article.id"/>
		标题：<s:textfield name="article.title"/><br/>
       	发布人：<s:select name="article.author"
                  list="{'系统管理员','新闻部门','商务部门','文化部门','科技部门'}" 
                  headerKey="0" headerValue="请选择发布人"></s:select><br/>
		栏目：<s:select name="article.channel.id"
                  list="clist" 
                  listKey="id" listValue="name"></s:select><br/>
    	<textarea name="content" class="xheditor" 
    	          cols=130 rows=15 style="width: 80%">
    	      <s:property value="article.content"/>
    	</textarea><br/>
    	<input type="submit" value="发布..."/>
	</s:form>
</div> 
</div>
</body>
</html>